\section{\texorpdfstring{sec.~\ref{sec:hdr}}{sec.~}}\label{sec:hdr}

\begin{figure}
\centering
\pandocbounded{\includegraphics[keepaspectratio,alt={fig.~}]{foo.png}}
\caption{fig.~\ref{fig:fig}}\label{fig:fig}
\end{figure}

\begin{longtable}[]{@{}lll@{}}
\caption{tbl.~\ref{tbl:table} fig.~\ref{fig:subfigures}
fig.~\ref{fig:subfig1} fig.~\ref{fig:subfig2}
lst.~\ref{lst:lst}}\label{tbl:table}\tabularnewline
\toprule\noalign{}
\endfirsthead
\endhead
\bottomrule\noalign{}
\endlastfoot
& & \\
\end{longtable}

\begin{codelisting}

\caption{Listing tbl.~\ref{tbl:table} fig.~\ref{fig:subfigures}
fig.~\ref{fig:subfig1} fig.~\ref{fig:subfig2}
lst.~\ref{lst:lst}}\label{lst:lst}

\begin{Shaded}
\begin{Highlighting}[]
\NormalTok{foo}
\end{Highlighting}
\end{Shaded}

\end{codelisting}

\begin{pandoccrossrefsubfigures}

\begin{subfigure}{0.33\linewidth}\pandocbounded{\includegraphics[keepaspectratio,alt={tbl.~ fig.~ fig.~ fig.~ lst.~}]{fig1.png}}\caption{tbl.~\ref{tbl:table}
fig.~\ref{fig:subfigures} fig.~\ref{fig:subfig1} fig.~\ref{fig:subfig2}
lst.~\ref{lst:lst}\label{fig:subfig1}}\end{subfigure}%
\begin{subfigure}{0.33\linewidth}\pandocbounded{\includegraphics[keepaspectratio,alt={tbl.~ fig.~ fig.~ fig.~ lst.~}]{fig2.png}}\caption{tbl.~\ref{tbl:table}
fig.~\ref{fig:subfigures} fig.~\ref{fig:subfig1} fig.~\ref{fig:subfig2}
lst.~\ref{lst:lst}\label{fig:subfig2}}\end{subfigure}%
\begin{subfigure}{0.33\linewidth}\pandocbounded{\includegraphics[keepaspectratio,alt={3}]{fig3.png}}\caption{3}\end{subfigure}%

\caption{Caption tbl.~\ref{tbl:table} fig.~\ref{fig:subfigures}
fig.~\ref{fig:subfig1} fig.~\ref{fig:subfig2}
lst.~\ref{lst:lst}}\label{fig:subfigures}

\end{pandoccrossrefsubfigures}
